<ion-view class="view-delivery" view-title="收货" name="login-view" devin-hide-tabs="true">
  <ion-nav-buttons side="right">
    <span class="nav-right-button" ng-click="save()">保存</span>
  </ion-nav-buttons>

  <ion-content>
    <!--
    <ion-list>
      <ion-item class="item-delivery item item-padding-left">
        <ion-item class="item-bg">
          <span class="project-spms-title">项目编号{{project.projectNumber}}</span>
          <span class="project-spms-status">{{project.statusDesc}}</span>
        </ion-item>
        <ion-item class="item-bg">
          <img ng-src="img/icon1.png">
          <span class="project-spms-label">客户名称</span>
          <span class="project-spms-info">{{project.customerName}}</span>
        </ion-item>
        <ion-item class="item-bg">
          <img ng-src="img/icon-people.png">
          <span class="project-spms-label">客户联系人</span>
          <span class="project-spms-info" style="min-width: 40%">{{project.contacts}}  {{project.contactsTel}}</span>
        </ion-item>
        <ion-item class="item-bg">
          <img ng-src="img/icon-building.png">
          <span class="project-spms-label">所属地区</span>
          <span class="project-spms-info">{{project.regionDesc}}</span>
        </ion-item>
        <ion-item class="item-bg">
          <img ng-src="img/icon-building.png">
          <span class="project-spms-label">详细地址</span>
          <span class="project-spms-info">{{project.address}}</span>
        </ion-item>
      </ion-item>
    </ion-list>
    -->

      <ion-list>
        <ion-item class="item-delivery item item-padding-left">
          <ion-item class="item-bg">
            <span class="project-spms-title">太阳能组件</span><!--ng-show="receivingDataForCategory.GFZJ > 0"-->
            <img src="img/barcode-scan.png"  ng-click="goScan('GFZJ', 'serialNumber', serialNumberForCategory)" class="ion-chevron-right project-spms-accessory"/>
          </ion-item>
          <ion-item class="item-bg" ng-click="switchSolarModuleList()">
            <i class="icon placeholder-icon icon-delivery" ng-class="{true: 'ion-arrow-right-b', false: 'ion-arrow-down-b'}[solarModuleListHidden]"></i>
            <span class="item-title-delivery project-spms-label">总计{{vm.modulesNum}}块</span>
            <span class="item-detail-delivery project-spms-info">到货{{serialNumberForCategory.GFZJ.length}}块</span>
          </ion-item>
          <div>
            <div ng-hide="!solarModuleListHidden" class="line-delivery"></div>
              <div ng-hide="!solarModuleListHidden">
                <ul class="list list-delivery" ng-repeat="value in serialNumberForCategory.GFZJ">
                  <li class="item list-item-delivery">
                    <span class="list-left-item">{{$index + 1}}.</span>&nbsp;&nbsp;<span>{{value.serialNumber}}</span>
                  </li>
                </ul>
              </div>
            <div class="line-delivery"></div>
          </div>
          <ion-item class="item-bg">
            <span class="project-spms-title">逆变器</span>
          </ion-item>
          <div ng-repeat="value in serialNumberForCategory.NBQ" ng-if="value.categoryCode == 'A0302'">
            <ul>
              <li class="item list-item-delivery"style="padding-left: 15px">
                <li style="margin-left:10px; height:1px;width: 100%; background-color: #333"></li>
                <ion-item class="item-bg">
                  <span style="margin-left: -10px" class="item-sub-title-delivery project-spms-label">{{$index + 1}}.{{value.itemCode}}</span>
                </ion-item>
                <devin-task-item ng-click="goChoice(value.itemCode, value.itemRealCode, $index)" label="逆变器型号" canchoice="true" choicecontent="{{value.itemMeaning}}"></devin-task-item>
                <ion-item class="item-bg">
                  <span class="item-sub-title-delivery project-spms-label">逆变器序列号</span>
                  <label style="padding-right: 30px;text-align : right;position: absolute;right: 20px;" ng-bind="value.serialNumber"></label>
                  <!--<img src="img/barcode-scan.png" ng-click="scanBarcode(value,'serialNumber')" class="ion-chevron-right project-spms-accessory"/>-->
                  <img src="img/barcode-scan.png" ng-click="goScan('NBQ', 'serialNumber', serialNumberForCategory, $index)" class="ion-chevron-right project-spms-accessory"/>
                </ion-item>
                <ion-item class="item-bg">
                  <span class="item-sub-title-delivery project-spms-label">通讯模块序列号</span>
                  <label style="padding-right: 30px;text-align : right;position: absolute;right: 20px;" ng-bind="value.serialNumber2"></label>
                  <img src="img/barcode-scan.png" ng-click="goScan('NBQ', 'serialNumber1', serialNumberForCategory, $index)" class="ion-chevron-right project-spms-accessory"/>
                </ion-item>
                <ion-item class="item-bg">
                  <span class="item-sub-title-delivery project-spms-label">SIM卡1</span>
                  <input type="tel" placeholder="请填写SIM卡1" ng-model="value.sim1" style="text-align:right;width: 60%;color: #111" class="simInput ion-chevron-right project-spms-accessory">
                </ion-item>
                <ion-item class="item-bg">
                  <span class="item-sub-title-delivery project-spms-label">SIM卡2</span>
                  <input type="tel" placeholder="请填写SIM卡2" ng-model="value.sim2" style="text-align:right; width: 60%;color: #111" class="simInput ion-chevron-right project-spms-accessory">
                </ion-item>
              </li>
            </ul>
            <div class="line-delivery"></div>
          </div>

          <ion-item class="item-bg">
            <span class="project-spms-title">配电箱</span>
            <span class="item-detail-delivery project-spms-info"><button class="button button-positive button-delivery" style="margin:-4px;border-radius: 50%"  ng-click="all('PDX')">全到</button></span>
          </ion-item>
          <ion-item class="item-bg" ng-repeat="value in receivingDataForCategory.PDX">
            <span style="width: 40%" class="delivery-subtile project-spms-label">{{value.itemCode}}</span>
            <span class="delivery-subtile project-spms-label">共计{{value.itemQty}}块</span>
            <input class="numInput" type="number" ng-model="value.receivedQty" placeholder="填写数据">
          </ion-item>

          <ion-item class="item-bg">
            <span class="project-spms-title">支架系统</span>
            <span class="item-detail-delivery project-spms-info"><button class="button button-positive button-delivery" style="margin:-4px;border-radius: 50%"  ng-click="all('OTHERS')">全到</button></span>
          </ion-item>
          <ion-item class="item-bg" ng-repeat="value in receivingDataForCategory.OTHER">
            <span style="width: 40%" class="delivery-subtile project-spms-label">{{value.category2+""+value.itemCode}}</span>
            <span class="delivery-subtile project-spms-label">&nbsp;&nbsp;{{value.itemQty}}根</span>
            <input class="numInput" type="number" ng-model="value.receivedQty" placeholder="填写数据" />
          </ion-item>
        </ion-item>
      </ion-list>

    <div class="page-bottom"></div>
  </ion-content>
</ion-view>
